<?php

require_once('function.php');
$bitchId = $_GET['bitch_id'];
$bitch=select_bitch($bitchId);
$prices=show_services();

?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        
        <div id="bitch_img">
            <img src='<?php echo $bitch['img_url'] ?>' alt="" />
        </div>
        <table id="bitch_info">
            <tr>
                <th>Name</th>
                <th>Type</th>
                <th>Age</th>
                <th>Height</th>
                <th>Weight</th>
                <th>Boobs</th>
                <th>Hair color</th>   
            </tr>
            <tr>
                <td><?php echo $bitch['surnom'];?></td>
                <td><?php echo $bitch['type'];?></td>
                <td><?php echo $bitch['age'];?></td>
                <td><?php echo $bitch['height'];?></td>
                <td><?php echo $bitch['weight'];?></td>
                <td><?php echo $bitch['boobs'];?></td>
                <td><?php echo $bitch['hair_color'];?></td>
            </tr>
        </table>
        <table id="bitch_price">
            <tr>
                <?php foreach($prices as $p): ?>
                <th><?php echo $p['description'] ?></th>
                <?php                endforeach; ?>
            </tr>
                <?php foreach($prices as $p): ?>
                <th>
                    <?php   
                            $price = $p['cost']*$bitch['coef'];
                            echo $price;               
                     ?>
                </th>
                <?php                endforeach; ?>
        </table>
        <p><a href="givebitchfeedback.php?bitch_id=<?php echo $bitchId; ?>">Give a feedback</a></p>
        <p><a href="bitchfeedback.php?bitch_id=<?php echo $bitchId; ?>">Read feedback</a></p>
    </body>
</html>
